import IEvent from "../Contract/IEvent";

import IServerData from "../Contract/IServerData";

class LoginHandle implements IEvent {

    handle(data: IServerData<{code: string}>) {

        console.log(data);

        localStorage.setItem("code", data.data.code);

        location.href="/#/app/dashboard/index";
    }
    
}

export default LoginHandle;